/*
 *  PixelBuffer.h
 *  KDTreeRayTracer
 *
 *  Created by steveca  on 09/04/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef __RT_PIXELBUFFER_H__
#define __RT_PIXELBUFFER_H__


namespace RTRT {

    typedef unsigned int Pixel;
    
    class PixelBuffer
    {
    public:
        PixelBuffer();
        ~PixelBuffer();

        Pixel *getPixelBuffer() { return m_buffer; }
        unsigned int getLength() { return m_length; }

        unsigned int getWidth() {return m_width;}
        unsigned int getHeight() {return m_height;}

        int createPixelBuffer( unsigned int width, unsigned int height );
        int destroy();

    private:
        unsigned int m_length;
        unsigned int m_width, m_height;

        Pixel *m_buffer;
    };
}

#endif